ifndef LEX_YACC_MK
LEX_YACC_MK:=yes

CURRENT_PATH:=$(PROJ_PATH)lex_yacc/

TMP_OBJS :=$(CURRENT_PATH)y.tab.o \
$(CURRENT_PATH)lex.yy.o \


OBJS+=$(TMP_OBJS)

DEPS+= $(TMP_OBJS:%.o=%.d)

$(CURRENT_PATH)%.o:$(CURRENT_PATH)%.c
	@echo 'Building $@'
	g++ $(INCLUDES) $(DEFINES) $(COMPILE_FLAGS) -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
	@echo 'Finish building $@'
	@echo ' '
	
endif

